﻿'************************************************************
'* プログラムID: CommonConst
'* プログラム　: 共通用定数クラス
'* 作成者      : 于俊龍(DaouOSD)
'* 作成日      : 2013/12/11
'* 更新者      :
'* 更新日      :
'* 備考        :
'************************************************************

''' <summary>
''' 共通用定数クラス
''' </summary>
''' <remarks></remarks>
Public Class CommonConst

#Region "DB接続情報"
    ''' <summary>
    ''' DB接続情報
    ''' </summary>
    ''' <remarks></remarks>
    Public Const DB_CONNECTION As String = "oshinConnection"
#End Region

#Region "ログ用定数"
    ''' <summary>
    ''' ログ用定数
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure Log
        ''' <summary>
        ''' ログ開始
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LOG_START As String = "開始"
        ''' <summary>
        ''' ログ終了
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LOG_END As String = "終了"
        ''' <summary>
        ''' 半角スペース
        ''' </summary>
        Public Const DBC_SPACE As String = " "
        ''' <summary>
        ''' 大括弧”【”
        ''' </summary>
        Public Const STRBRACKETSLEFT As String = "【"
        ''' <summary>
        ''' 大括弧”】”
        ''' </summary>
        Public Const STRBRACKETSRIGHT As String = "】"
        ''' <summary>
        ''' 出力のログのユーザーID長さ
        ''' </summary>
        Public Const LOG_USER_LENGET As Long = 30
        ''' <summary>
        ''' 出力のログのフォームID長さ
        ''' </summary>
        Public Const LOG_FORM_LENGET As Long = 30
        ''' <summary>
        ''' 出力のログの関数ID長さ
        ''' </summary>
        Public Const LOG_FUNC_LENGET As Long = 30
        ''' <summary>
        ''' メッセージコードと内容つながるマック
        ''' </summary>
        Public Const COLON As String = ":"
    End Structure
#End Region

#Region "文字記号"
    ''' <summary>
    ''' 文字記号
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure StringMark
        ''' <summary>
        ''' 全角 空白文字
        ''' </summary>
        ''' <remarks></remarks>
        Public Const BLANK_FULL As String = "　"
        ''' <summary>
        ''' 半角 空白文字
        ''' </summary>
        ''' <remarks></remarks>
        Public Const BLANK As String = " "
        ''' <summary>
        ''' 半角 空白文字
        ''' HTML用
        ''' </summary>
        ''' <remarks></remarks>
        Public Const BLANK_HTML As String = "&nbsp;"
        ''' <summary>
        ''' コロン::
        ''' </summary>
        ''' <remarks></remarks>
        Public Const COLON As String = ":"
        ''' <summary>
        ''' ～
        ''' </summary>
        ''' <remarks></remarks>
        Public Const HAKEI As String = "～"
        ''' <summary>
        ''' ○
        ''' </summary>
        ''' <remarks></remarks>
        Public Const MARU As String = "○"
        ''' <summary>
        ''' ×
        ''' </summary>
        ''' <remarks></remarks>
        Public Const BATU As String = "×"
        ''' <summary>
        ''' 「/」
        ''' </summary>
        ''' <remarks></remarks>
        Public Const SLASH As String = "/"
        ''' <summary>
        '''「-]
        ''' </summary>
        ''' <remarks></remarks>
        Public Const RAIL As String = "-"
        ''' <summary>
        ''' 「.」
        ''' </summary>
        ''' <remarks></remarks>
        Public Const TENN As String = "."
        ''' <summary>
        '''  エスケープ文字列(＃)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const ESCAPE_SHARP As String = "#"
        ''' <summary>
        '''  区切り記号(カンマ)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const COMMA As String = ","
        ''' <summary>
        '''  区切り記号(読点)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const TOTEN_KUGIRI As String = "、"
        ''' <summary>
        '''  区切り記号(\)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const SURASSHU_KUGIRI As String = "\"
        ''' <summary>
        ''' 半角 丸括弧開始:(  
        ''' </summary>
        ''' <remarks></remarks>
        Public Const HALF_PARENTHESIS_START As String = "("
        ''' <summary>
        ''' 半角 丸括弧終了:)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const HALF_PARENTHESIS_END As String = ")"
        ''' <summary>
        '''  区切り記号(★)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const ENTITY_ASTERISK As String = "★"
        ''' <summary>
        ''' 全角 ＊
        ''' </summary>
        ''' <remarks></remarks>
        Public Const START_FULL As String = "＊"
        ''' <summary>
        ''' 全て
        ''' </summary>
        ''' <remarks></remarks>
        Public Const SELECT_ALL_LABEL As String = "全て"
        ''' <summary>
        ''' 全角の英字ハイフォン（"－”）
        ''' </summary>
        ''' <remarks></remarks>
        Public Const RAIL_FULL As String = "－"
    End Structure

#Region "括弧"
    ''' <summary>
    ''' 括弧
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure KAKKO
        ''' <summary>
        ''' 半角 丸括弧開始:(  
        ''' </summary>
        ''' <remarks></remarks>
        Public Const HALF_PARENTHESIS_START As String = "("
        ''' <summary>
        ''' 半角 丸括弧終了:)
        ''' </summary>
        ''' <remarks></remarks>
        Public Const HALF_PARENTHESIS_END As String = ")"
        ''' <summary>
        ''' 丸括弧開始:（
        ''' </summary>
        ''' <remarks></remarks>
        Public Const PARENTHESIS_START As String = "（"
        ''' <summary>
        ''' 丸括弧終了:）
        ''' </summary>
        ''' <remarks></remarks>
        Public Const PARENTHESIS_END As String = "）"
        ''' <summary>
        ''' 隅付き括弧開始:【
        ''' </summary>
        ''' <remarks></remarks>
        Public Const INK_BRACKETS_START As String = "【"
        ''' <summary>
        ''' 隅付き括弧終了:】
        ''' </summary>
        ''' <remarks></remarks>
        Public Const INK_BRACKETS_END As String = "】"
    End Structure
#End Region
#End Region

#Region "数字記号"
    ''' <summary>
    ''' 文字記号
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure Number
        ''' <summary>
        ''' zero
        ''' </summary>
        ''' <remarks></remarks>
        Public Const ZERO As Integer = 0
        ''' <summary>
        ''' 患者数がMAX999
        ''' </summary>
        ''' <remarks></remarks>
        Public Const PATIENT_MAX_NUM As Integer = 999
    End Structure
#End Region

#Region "1月1日"
    ''' <summary>
    ''' 1月1日:"0101"
    ''' </summary>
    ''' <remarks></remarks>
    Public Const JAN_FST As String = "0101"
#End Region

#Region "12月31日"
    ''' <summary>
    ''' 12月31日:"1231"
    ''' </summary>
    ''' <remarks></remarks>
    Public Const JAN_YEAR_END As String = "1231"
#End Region

#Region "システム最小日付"
    ''' <summary>
    ''' システム最小日付:"19000101"
    ''' </summary>
    ''' <remarks>システム最大日付</remarks>
    Public Const MIN_SYSTEM_DATE As String = "19000101"
#End Region

#Region "システム最大日付"
    ''' <summary>
    ''' システム最大日付:"99991231"
    ''' </summary>
    ''' <remarks>システム最大日付</remarks>
    Public Const MAX_SYSTEM_DATE As String = "99991231"
#End Region

#Region "データ更新状態"
    ''' <summary>
    ''' データ更新状態
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure UpdStatusKbn
        ''' <summary>
        ''' 新規
        ''' </summary>
        ''' <remarks></remarks>
        Public Const INS As String = "0"
        ''' <summary>
        ''' 更新
        ''' </summary>
        ''' <remarks></remarks>
        Public Const UPD As String = "1"
        ''' <summary>
        ''' 削除
        ''' </summary>
        ''' <remarks></remarks>
        Public Const DEL As String = "2"
    End Structure
#End Region

#Region "セッション用定数"
    ''' <summary>
    ''' セッション用定数
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure SESSION_KEY
        ''' <summary>
        ''' ユーザーセッション
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LOGIN_USER As String = "LOGIN_USER_SESSION_KEY"
        ''' <summary>
        ''' 例外ハンドルのエラー情報
        ''' </summary>
        ''' <remarks></remarks>
        Public Const EXCEPTION_MESSAGE As String = "EXCEPTION_MESSAGE"
    End Structure
#End Region

#Region "クッキー用定数"
    ''' <summary>
    ''' クッキー用定数
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure COOKIES_KEY
        ''' <summary>
        ''' クッキー名
        ''' </summary>
        ''' <remarks></remarks>
        Public Const COOKIES_NAME = "XHGOLF_COOKIES_NAME_KEY"
        ''' <summary>
        ''' ユーザークッキー
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LOGIN_USER_ID As String = "LOGIN_USER_ID_COOKIES_KEY"
    End Structure
#End Region

#Region "ログ用定数"
    ''' <summary>
    ''' ログ用定数
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure LogConst
        ''' <summary>
        ''' ログ開始
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LOG_START As String = "開始"
        ''' <summary>
        ''' ログ終了
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LOG_END As String = "終了"
    End Structure
#End Region

#Region "画面処理区分"
    ''' <summary>
    ''' 画面処理区分
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure PAGE_PROC_KBN
        ''' <summary>
        ''' 画面処理区分 =1
        ''' </summary>
        ''' <remarks></remarks>
        Public Const KBN_01 As String = "1"
        ''' <summary>
        ''' 画面処理区分 =2
        ''' </summary>
        ''' <remarks></remarks>
        Public Const KBN_02 As String = "2"
        ''' <summary>
        ''' 画面処理区分 =1
        ''' </summary>
        ''' <remarks></remarks>
        Public Const KBN_03 As String = "3"
    End Structure
#End Region

#Region "性別処理区分"
    ''' <summary>
    ''' 性別処理区分
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure SEX_KBN
        ''' <summary>
        ''' 性別処理区分 =1
        ''' </summary>
        ''' <remarks></remarks>
        Public Const SEX_MAN As String = "1"
        ''' <summary>
        ''' 性別処理区分 =2
        ''' </summary>
        ''' <remarks></remarks>
        Public Const SEX_WOMAN As String = "2"
        ''' <summary>
        ''' 性別処理区分 =3
        ''' </summary>
        ''' <remarks></remarks>
        Public Const SEX_UN_KNOW As String = "3"
    End Structure
#End Region

#Region "コンボボックス"
    ''' <summary>
    ''' コンボボックス名
    ''' </summary>
    ''' <remarks></remarks>
    <Serializable()>
    Public Enum EComonBoxName
        ''' <summary>
        ''' 診療区分
        ''' </summary>
        ''' <remarks>診療区分</remarks>
        TREATMEN_KBN
        ''' <summary>
        ''' 診療種別
        ''' </summary>
        ''' <remarks></remarks>
        TREATMEN_KIND
        ''' <summary>
        ''' 病名転帰
        ''' </summary>
        ''' <remarks></remarks>
        DISEASE_OUTCOME
        ''' <summary>
        ''' 病名疑い
        ''' </summary>
        ''' <remarks></remarks>
        DISEASE_DOUBTDISEASE
        ''' <summary>
        ''' 主病名
        ''' </summary>
        ''' <remarks></remarks>
        MASTER_DISEASE
        ''' <summary>
        ''' カルテ病名
        ''' </summary>
        ''' <remarks></remarks>
        KARTE_ENTRY_DISEASE_NAME
        ''' <summary>
        ''' 人場所
        ''' </summary>
        ''' <remarks></remarks>
        LOCATION
        ''' <summary>
        ''' 用法
        ''' </summary>
        ''' <remarks></remarks>
        ADMINISTRATION
    End Enum
#End Region

#Region "色定数"
    ''' <summary>
    ''' 背景色のコード
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure COLOR_CODE
        ''' <summary>
        ''' 赤色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const RED_COLOR_CODE = "	#FF0000"
        ''' <summary>
        ''' 黒色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const BLACK_COLOR_CODE = "#000000"
        ''' <summary>
        ''' ピンク色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const PINK_COLOR_CODE = "#FFCCCC"
        ''' <summary>
        ''' 白色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const WHITE_COLOR_CODE = "#FFFFFF"
        ''' <summary>
        ''' 黄色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const YELLOW_COLOR_CODE = "#F9F900"
        ''' <summary>
        ''' 青色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const BLUE_COLOR_CODE = "#0099FF"
        ''' <summary>
        ''' 水色コードの設定
        ''' </summary>
        ''' <remarks></remarks>
        Public Const LINGHT_BLUE_COLOR_CODE = "#CCFFFF"
    End Structure
#End Region

End Class
